import React from 'react'


export default function Demo2page() {
  console.log('demo2Page');
  
  React.useEffect(()=>{
    window.addEventListener('message', (event) => {
      console.log('window2', `来自于${event.origin}的信息：`,{ful:event,origin:event.origin,data:event.data},event.data);
    });
  },[])
  return (
    <div>
      <h2>Demo2page 接收方</h2>
    </div>
  )
}
